﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using MaxLeaf.Platform.Contract;
using MaxLeaf.Platform.BLLImplementation;
using MaxLeaf.Platform.DataContract;
using CommonsLib.Utility;
using CommonsLib.Settings;

namespace MaxLeaf.Platform.BLLServer
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“mUser_MainBSL”。
    public class mUser_MainBSL :BaseBLLServer, IUser
    { 

        #region IUser 成员

        public mUser_MainDataModel Login(string strUserName, string strPassword)
        {
            //LogManager.Debug(string.Format( "BLL server Login {0}   ",strUserName ));
            mUser_MainBLL bll = new mUser_MainBLL();

            return bll.Login(strUserName, strPassword);
        }

        #endregion


        public bool ResetPassword(string strUserName, string strOldPassword, string strNewPassword)
        {
            LogManager.Debug(string.Format("BLL server ResetPassword {0}   ", strUserName));

            mUser_MainBLL bll = new mUser_MainBLL();

            return bll.ResetPassword(strUserName, strOldPassword, strNewPassword);
        }
    }
}
